<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片居中</title>
    <style>
 
        div {
            text-align: left;
        }
    </style>
</head>
<body>
    <div>
        <img src="./images/1.jpg" alt="">
        <div>
            <img src="./images/1.jpg" alt="">
        </div>
    </div>
</body>
</html>